﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Sirenix.OdinInspector;

namespace FibMatrix.Framework
{
    public class UGUIEditorCfg : FibMatrix.BaseUtils.FibSingletonCfgBase
    {
        // ------------- 子类必须实现的指定签名的静态单例方法才能显示在ProjectSetting界面
        static UGUIEditorCfg s_Inst;
        public static UGUIEditorCfg Instance
        {
            get
            {
                if (s_Inst == null)
                    s_Inst = LoadOrCreate<UGUIEditorCfg>(runtimeAsset: false);
                return s_Inst;
            }
        }
        // --------------------------------------------


        public ComponentParam componentParam;

    }

    [System.Serializable]
    [LabelText("组件参数")]
    public class ComponentParam
    {
        [LabelText("替换UGUIButonEx时的默认按下缩放值")]
        public Vector3 buttonPressScaleOnReplace = new Vector3(0.7f, 0.7f, 0.7f);
    }
}
